﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using HsTec.DigitalPlatform.DataAccess;

namespace HsTec.DigitalPlatform.Business
{
    public class SpecInfoManager
    {
        SpecInfoRepository specinforepository = new SpecInfoRepository();

        public void Add(SpecInfo specinfo)
        {
            specinforepository.Add(specinfo);
        }

        public void Delete(SpecInfo specinfo)
        {
            specinforepository.Delete(specinfo);
        }

        public void Save()
        {
            specinforepository.Save();
        }

        public SpecInfo GetSpecInfoByID(int id)
        {
            return specinforepository.GetSpecInfoByID(id);
        }

        public IQueryable<SpecInfo> FindALLSpecInfo()
        {
            return specinforepository.FindALLSpecInfo();
        }

        public IQueryable<ViSpecInfo> PageInfo(int page, int rp, string sortname, string sortorder)
        {
            return specinforepository.PageInfo(page, rp, sortname, sortorder);
        }

        public int GetAllCount()
        {
            return specinforepository.GetAllCount();
        }
    }
}
